var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');


var schema = new mongoose.Schema({
    title: { type: String },
    price: { type: Number },
    imgurl: { type: String },
    cateId: { type: mongoose.Schema.ObjectId }
});

schema.plugin(mongoosePaginate);

module.exports = mongoose.model('Product',schema); // Model.paginate()